import request from '@/utils/request'
// import { makeFormData } from '@/utils/util'

const api = {
  types: 'web/course/get_area_bulid_coursetype',
  addType: 'web/course/create_area_build_coursetype',
  updateType: 'web/course/update_area_build_coursetype'
}

export function createType (data = {}) {
  return request({
    url: api.addType,
    method: 'post',
    data
  })
}

export function updateType (data = {}) {
  return request({
    url: api.updateType,
    method: 'post',
    data
  })
}
